import mitt from "mitt";
export default class Emitter{
    private static instance?: Emitter;
    public emitter : any;
    constructor() {
        this.emitter = mitt();
    }
    static shared() {
        if (!this.instance) {
            this.instance = new Emitter();
        }
        return this.instance;
    }
}
